{% extends "mainPage.html" %}

{% block title %}
全风工具服务集-上传文件
{% endblock %}

{% block branding %}{% endblock %}
{% block breadcrumbs %}{% endblock %}

{% block main_body %}
<div id="main_body">
    <fieldset class="Web_Operation" style="margin-top: 10px;">
        <legend><h3>全风工具服务集-上传文件</h3></legend>
        <form action="{% url 'uploadFile' %}" enctype='multipart/form-data' method='POST'>
            {% csrf_token %}
            <p>
                <h5 class="title_name">选择上传的文件类型：</h5>
                <select name="op_type" style="width: 180px;height: 30px;margin-left: 20px">
                    {% for sp in upload_option %}
                       <option value="{{ sp }}">{{ sp }}</option>
                    {% endfor %}
                </select>
                <h5>
                    <input type="file" name="file" style="width: 400px;height: 30px;">
                </h5>

            </p>
                <input type="text" name="link" style="display: none" value="{{ link }}">
            <p>
                <h5>
                    上传文件的内容说明：<input type="text" name="description" style="width: 180px;height: 25px; margin-left: 20px">
                    <input type="submit" value="上传文件" style="width: 120px;height: 30px;margin-left: 10px;">
                </h5>
            </p>
            <p>
                <h5 class="title_name">上传后的文件路径是：{{upload_path}}</h5>
            </p>
        </form>
    </fieldset>
</div>
{% endblock %}